<?php
//print_r(PDO::getAvailableDrivers());
$dsn = 'mysql:dbname=sib_geo;host=localhost';$user = 'root'; $password = '';

try {
    $dbh = new PDO($dsn, $user, $password);
} catch (PDOException $e) {
    echo 'Подключение не удалось: ' . $e->getMessage();
}

$sql = 'SELECT * FROM point_name,point,network_name,region_name WHERE p_id=:p_id AND p_key=p_id AND p_key_net=net_key AND p_ln=:ln AND net_ln=:ln AND reg_key=p_key_reg AND reg_ln=:ln';
$sth = $dbh->prepare($sql);

$prm=array(
	':p_id'=>'ptb14a7b8059d9c055954c92674ce60032',
	':ln'=>'ru'
);
foreach($prm as $k=>$v)
$sth->bindValue($k, $v);

if($sth->execute() )
	echo '<pre class="debug">'.print_r ( $sth->fetchAll() ,true).'</pre>';
else
	echo 'error';


?>